package com.xk._02算法篇._11sequence;

import com.xk.tools.Asserts;

/**
 * @description:
 * @author: xu
 * @date: 2022/10/23 21:37
 */
public class Main {
    public static void main(String[] args) {
        Asserts.test(KMP.indexOf("Hello World", "H") == 0);
        Asserts.test(KMP.indexOf("Hello World", "d") == 10);
        Asserts.test(KMP.indexOf("Hello World", "or") == 7);
        Asserts.test(KMP.indexOf("Hello World", "abc") == -1);
    }
}
